<?php
namespace app\index\model;
class Shop extends BaseModel{
    
    function getShopAll(){
        $shop = D('shop');
        return $shop->where('enable',0)->select();
    }
    function getShop($id){
        $shop = D('shop');
        return $shop->where('id',$id)->find();
    }
  
}
